package org.hismig.cfg;

import java.util.List;

import org.hismig.utils.ListTool;

/**
 * @declare: //TODO <br />
 *           This class created by Vansion.Hopihit on 2012-07-04 <br />
 *           <a href="mailto:vansionhopihit@gmail.com">Contact Me</a>
 * @version 1.0
 * @author Vansion.Hopihit
 * 
 */
public class ExtExecutor {

	public enum Type {
		PRE, AFTER;
	}

	private String className;

	private List<Param> params;

	private Object parent;

	private Type type;

	private String to;

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public List<Param> getParams() {
		return params;
	}

	public void setParams(List<Param> params) {
		this.params = params;
	}

	public String getParamByName(String name) {
		return ListTool.getParamByName(params, name);
	}

	public Object getParent() {
		return parent;
	}

	public ExtExecutor setParent(Object parent) {
		this.parent = parent;
		return this;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}
}
